<%--
  Created by IntelliJ IDEA.
  User: lijun
  Date: 2019/12/19
  Time: 9:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>P2P平台</title><%--我要投资-查看（标的模块）--%>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <script type="text/javascript" src="js/jquery-1.12.4.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript">
        <style type="text/css">
        .el-userhead{
            width: 100px;
            height: 100px;
            display: block;
            margin: 0px auto;

        }
        .muted{
            color: #999;
        }
        .text-info{
            color: #09d;
        }
        </style>

        <script type="text/javascript">
            $(function(){
                $("#retroclockbox").flipcountdown({
                    size:'xs',
                    beforeDateTime:"12/24/2015 15:49:39"
                });

                $("#bidBtn").on("click",function(){
                    var amount = parseFloat($("#amount").val());
                    if(!amount){
                        $.messager.popup("请输入投资金额");
                        return;
                    }
                    if(parseFloat($("#usableAmount").val())<amount){
                        $.messager.popup("投资金额已超过账户余额");
                        return;
                    }
                    if(parseFloat($("#minBidAmount").val())>amount){
                        $.messager.popup("投资金额低于最小投标金额");
                        return;
                    }
                    if(parseFloat($("#maxBidAmount").val())<amount){
                        $.messager.popup("投资金额已超过借款标金额");
                        return;
                    }
                    $.post("/borrow_bid.do",{
                        bidRequestId : 2,
                        amount:amount
                    },function(data){
                        if(data.success){
                            $.messager.popup("恭喜你,投标成功");
                            location.reload();
                        }else{
                            $.messager.popup(data.message);
                        }
                    });
                });
            });
    </script>
</head>
<body>
<div class="container" style="margin-top: 10px;">

    <div class="row">
        <div class="col-sm-3">
            <div class="panel panel-default">
                <div class="panel-heading">
                    借款人
                </div>
                <div class="panel-body">
                    <img class="el-userhead" src="/images/person_icon.png">
                    <p class="text-center">
                        <a class="text-info" href="#">stef</a>
                    </p><br>
                    <div>
                        籍贯： 四川 - 成都
                    </div>
                    <div>
                        认证信息：
                        <label class="label label-success">
                            <span class="glyphicon glyphicon-user"></span>
                            <span class="glyphicon glyphicon-eye-open"></span>
                        </label>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-sm-6">
            <h3 class="text-info" style="margin-top: 0px;">
                我穷啊借款
                <small> <label class="label label-primary">信</label></small>
            </h3>
            <div>
                <table width="100%" height="250px">
                    <tbody><tr>
                        <td class="muted" width="80px">借款金额</td>
                        <td class="text-info" width="120px" style="padding-left: 10px;">
                            1,200
                        </td>
                        <td class="muted" width="80px">年化利率</td>
                        <td class="text-info" style="padding-left: 10px;">
                            15%
                        </td>
                    </tr>
                    <tr>
                        <td class="muted ">借款期限</td>
                        <td class="text-info" style="padding-left: 10px;">
                            6月
                        </td>
                        <td class="muted">总可得利息</td>
                        <td class="text-info" style="padding-left: 10px;">
                            53.043
                        </td>
                    </tr>
                    <tr>
                        <td class="muted">还款方式</td>
                        <td class="text-info" style="padding-left: 10px;">
                            等额本息
                        </td>
                        <td class="muted">最小投标</td>
                        <td class="text-info" style="padding-left: 10px;">
                            50
                        </td>
                    </tr>
                    <tr>
                        <td class="muted">风控意见</td>
                        <td class="text-info" style="padding-left: 10px;" colspan="3">
                            风控信息无误
                        </td>
                    </tr>
                    <tr>
                        <td class="muted">剩余时间</td>
                        <td class="text-info" style="padding-left: 10px;" colspan="3">
                            <div id="retroclockbox" class="xdsoft"><div class="xdsoft_flipcountdown xdsoft_size_xs"><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_digit xdsoft_space"></div><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_digit xdsoft_space"></div><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_digit xdsoft_space"></div><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_digit" style="background-position: 0px -145px;"></div><div class="xdsoft_clearex"></div></div></div>
                        </td>
                    </tr>
                    </tbody></table>
            </div>
        </div>
        <div class="col-sm-3">
            <table style="height:110px;width:230px;">
                <tbody><tr>
                    <td class="muted">投标总数</td><td class="text-info" style="padding-left: 10px;">
                    3
                </td>
                </tr>
                <tr>
                    <td class="muted">还需金额</td><td class="text-info" style="padding-left: 10px;">
                    0 元
                </td>
                </tr>
                <tr>
                    <td class="muted" colspan="2">投标进度</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div style="margin-bottom: 10px;" class="progress">
                            <div style="width: 100px" class="progress-bar progress-bar-info progress-bar-striped"></div>
                        </div>
                    </td>
                </tr>
                </tbody></table>


            <h4 class="text-primary">还款中</h4>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            借款人信息
        </div>
        <div class="panel-body">
            <table>
                <tbody>
                <tr>
                    <td class="muted text-right" width="140px;">出生时间</td>
                    <td width="150px;" style="padding-left: 10px;" class="text-info">
                        2015-05-05
                    </td>
                    <td class="muted text-right" width="140px;">借款额度</td>
                    <td width="150px;" style="padding-left: 10px;" class="text-info">
                        1,200
                    </td>
                    <td class="muted text-right" width="140px;">性别</td>
                    <td width="150px;" style="padding-left: 10px;" class="text-info">
                        男
                    </td>
                    <td class="muted text-right" width="140px;">住房条件</td>
                    <td width="150px;" style="padding-left: 10px;" class="text-info">
                        无自有房
                    </td>
                </tr>
                <tr>
                    <td class="muted text-right">文化程度</td>
                    <td style="padding-left: 10px;" class="text-info">
                        大专
                    </td>
                    <td class="muted text-right">每月收入</td>
                    <td style="padding-left: 10px;" class="text-info">
                        3000~5000
                    </td>
                    <td class="muted text-right">婚姻情况</td>
                    <td style="padding-left: 10px;" class="text-info">
                        未婚
                    </td>
                    <td class="muted text-right">子女情况</td>
                    <td style="padding-left: 10px;" class="text-info">
                        无子女
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div style="font-size: 16px;">材料信息</div>
        </div>
        <div class="panel-body">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>材料类型</th>
                    <th>材料数量</th>
                </tr>
                </thead>
                <tbody>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>房产证正面</th>
                    <td>1</td>
                </tr>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>房产证反面</th>
                    <td>1</td>
                </tr>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>户口本</th>
                    <td>1</td>
                </tr>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>结婚证</th>
                    <td>1</td>
                </tr>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>学位证</th>
                    <td>1</td>
                </tr>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>电话记录</th>
                    <td>1</td>
                </tr>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>毕业证</th>
                    <td>1</td>
                </tr>
                <tr style="cursor: pointer;" lid="2101" st="1" class="more">
                    <th>结婚证</th>
                    <td>1</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div style="font-size: 16px;">还款情况</div>
        </div>
        <div class="panel-body">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>还款状态</th>
                    <th>最近一周</th>
                    <th>最近1月</th>
                    <th>最近6月</th>
                    <th>6个月前</th>
                    <th>总计[?]</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>提前还款</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                </tr>
                <tr>
                    <td>准时还款</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                </tr>
                <tr>
                    <td>逾期已还</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                </tr>
                <tr>
                    <td>逾期未还</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <div style="font-size: 16px;">投标记录</div>
        </div>
        <div class="panel-body">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>投标人</th>
                    <th>年利率 </th>
                    <th>有效金额(¥)</th>
                    <th>投标时间</th>
                    <th>类型</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>stea</td>
                    <td>
                        15%
                    </td>
                    <td style="padding-right:60px;" class="text-info">
                        500
                    </td>
                    <td>
                        2015-12-23 16:17:59
                    </td>
                    <td>手动投标</td>
                </tr>
                <tr>
                    <td>stee</td>
                    <td>
                        15%
                    </td>
                    <td style="padding-right:60px;" class="text-info">
                        500
                    </td>
                    <td>
                        2015-12-23 16:21:39
                    </td>
                    <td>手动投标</td>
                </tr>
                <tr>
                    <td>stee</td>
                    <td>
                        15%
                    </td>
                    <td style="padding-right:60px;" class="text-info">
                        200
                    </td>
                    <td>
                        2015-12-23 16:22:01
                    </td>
                    <td>手动投标</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>

